import config from '@/config'
import fn from '@/utils/function'
import mitt from '@/utils/mitt'

export function setupGlobalMethods(app) {
  const eventBus = new mitt()

  app.config.globalProperties.$config = config
  app.config.globalProperties.$fn = fn

  // 全局事件总线
  app.config.globalProperties.$eventBus = eventBus
}
